<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form action="" method="get">
        姓名：<input type="text" name="username">
        密码：<input type="text" name="age">
        <input type="submit" value="get提交数据">
    </form>

<br>
<form action="" method="post">
        姓名：<input type="text" name="username">
        密码：<input type="text" name="age">
        <input type="submit" value="post">
    </form>

</body>
</html>